package com.study.manage.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.study.manage.domain.enumm.BlogBehaviorType;

@Entity
@Table(name = "yy_blog_behavior")
public class BlogBehavior extends AbstractEntity {

    private static final long serialVersionUID = 5535409481110171726L;

    @Column(name = "typee", columnDefinition = "tinyint")
    public BlogBehaviorType type;
    public Long evaluateId;
    public Integer showed = 0;
    public Integer opened = 0;
    public Integer liked = 0;
    public Integer voted = 0;
    public Integer graded = 0;
    public Integer dianping = 0;
    public Integer taolun = 0;
    public Integer hudong = 0;

    public Integer otherCount = 0;
    public Integer blogCount = 0;
    public Integer activityCount = 0;
    public Integer otherEvaluateCount = 0;

    public BlogBehavior() {}

    public BlogBehavior(Long id) {
        this.id = id;
    }
}
